<?php

namespace App\B2BProject\Custom;

use Illuminate\Database\Eloquent\Model;

/**
 * Class Provider
 *
 * 供应商模型
 *
 * @package App\B2BProject\Custom
 */
class Provider extends Member
{
    protected $table = 'members';

    /**
     * 获取全部授权申请列表
     *
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function authorizationRequests()
    {
        return $this->hasMany('App\B2BProject\Custom\AuthorizationRequest', 'provider_id', 'id');
    }
}
